<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>工作价格-个人中心-魔步网</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">
    <div class="container mrgB30">
        <div class="member clearfix">
            <?php include_once(VIEWPATH."m/public/left_menu.php");?>
            <div class="fr uc_content">
            	<?php include_once(VIEWPATH."m/public/notice.php");?>
                <div class="clearfix uitopg">
                  <div class="fl um_uitop">
                      <div class="authent">
                        <div class="aut_bti"><?php if (isset($user_info)&&$user_info):?><a href="/i/index/<?=$user_info['id']?>" style="color:blue;text-decoration:underline;margin-left:5px;margin-right:5px;" target="_blank"><?=$user_info['nickname']?></a>的<?php endif;?>工作价格：</div>
                          <table class="aut_tab profile" width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tbody><tr>
                              <input type="hidden" value="<?=$usertype?>" id="user_type_flag"/>
                                <td width="86" valign="top"><font><?=$item_label?>：</font></td>
                                <td colspan="3" valign="top" class="price">
                                	<?php if (in_array($usertype, array(4,5,6))):?>
                                		<?php foreach ($workitem as $key => $v): ?>
	                                    	<span><input type="checkbox" name="item" value="<?=$key?>" id="item<?=$key?>" _text="<?=$v?>"><label for="item<?=$key?>"><?=$v?></label></span>
	                                  	<?php endforeach;?>
                                	<?php else :?>
	                                  	<?php foreach ($workitem as $key => $v): 
	                                      if (in_array($key, array(2, 3, 6, 10))) :
	                                      ?>
	                                    	<span><input type="checkbox" name="item" value="<?=$key?>" id="item<?=$key?>" _text="<?=$v?>"><label for="item<?=$key?>"><?=$v?></label></span>
	                                  	<?php endif;endforeach;?> 
                                  	<?php endif;?>
                                </td>
                              </tr>
                              <input type="hidden" value="<?=$workscene?1:2?>" id="workscene_flag"/>
                              <?php if ($workscene):?>
                              <tr>
                                <td width="86" valign="top"><font><?=$scene_label?>：</font></td>
                                <td colspan="3" valign="top" class="price">
                                  <?php foreach ($workscene as $key => $v): ?>
                                    <span><input type="radio" name="scene" value="<?=$key?>" id="scene<?=$key?>" _text="<?=$v?>"><label for="scene<?=$key?>"><?=$v?></label></span>
                                  <?php endforeach;?>
                                </td>
                              </tr>
                              <?php endif;?>
                              <tr>
                                <td width="86">计价方式：</td>
                                <td colspan="3" class="price">
                                  <?php foreach ($worktime as $key => $v): ?>
                                    <span><input type="radio" name="time" value="<?=$key?>" id="time<?=$key?>" _text="<?=$v?>"><label for="time<?=$key?>"><?=$v?></label></span>
                                  <?php endforeach;?> 
                                </td>
                              </tr>
                              <?php if ($usertype == 1):?>
                                  <tr>
                                    <td width="86">工作形式：</td>
                                    <td colspan="3" class="price" id="shoot_model_type">
                                        <span>
                                            <input type="radio" name="shoottype" id="shoottype_radio_ord" value="1" ><label for="shoottype_radio_ord">款式拍摄</label>
                                            <select id="shootpic_ordinary" style="width:50px;">
                                                <option value=""></option>
                                                <option value="20">20</option>
                                                <option value="30">30</option>
                                                <option value="40">40</option>
                                                <option value="50">50</option>
                                                <option value="0">不限</option>
                                            </select>
                                            <label for="shoottype_radio_ord">&nbsp;件起拍</label>
                                            <!-- <input type="text" id="shootpic_ordinary" value=""  style="width:30px;"> -->
                                        </span>
                                        <span>
                                            <input type="radio" name="shoottype" id="shoottype_radio_fine" value="2" ><label for="shoottype_radio_fine">形象拍摄</label>
                                            <select id="shootpic_fine" style="width:50px;">
                                                <option value=""></option>
                                                <option value="5">5</option>
                                                <option value="10">10</option>
                                                <option value="15">15</option>
                                                <option value="20">20</option>
                                                <option value="0">不限</option>
                                            </select>
                                            <label>&nbsp;件起拍</label>
                                            <!-- <input type="text" id="shootpic_fine" value=""  style="width:30px;">&nbsp;件起拍-->
                                        </span>
                                        <span style="padding-top:1.5px;">
                                            <input type="radio" name="shoottype" id="shoottype_radio_none" value="3" ><label for="shoottype_radio_none">不限</label>
                                        </span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="86">工作备注：</td>
                                    <td colspan="3" class="price">
                                        <span>
                                            <input type="radio" name="swimsuit" value="1" id="swimsuit_radio_yes"/><label for="swimsuit_radio_yes">内衣泳装加收</label>
                                            <input type="text" id="swimsuit_percentage" name="swimsuit_percentage" value="" style="width:25px;">%
                                        </span>
                                        <span><input type="radio" name="swimsuit" value="0.1" id="swimsuit_radio_no"/><label for="swimsuit_radio_no">不接内衣泳装</label></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="86"></td>
                                    <td colspan="3" class="price">
                                        <span>
                                            <input type="radio" name="appealsuit" value="1" id="appealsuit_radio_yes"/><label for="appealsuit_radio_yes">情趣内衣加收</label>
                                            <input type="text" id="appealsuit_percentage" name="appealsuit_percentage" value=""  style="width:25px;">%
                                        </span>
                                        <span><input type="radio" name="appealsuit" value="0.1" id="appealsuit_radio_no"/><label for="appealsuit_radio_no">不接情趣内衣</label></span>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td></td>
                                    <td colspan="3">外地工作价格加20%，不含来回车旅住宿费，具体费用实报实销。</td>
                                  </tr>
                              <?php endif;?>
                              <tr>
                                <td style="height:100px">&nbsp;</td>
                                <td colspan="3">
                                    <div id="alertmsg" class="main_color xtmb-10" style="display:none;"></div>
                                    <input name="btn" id="XT-Add" type="button" class="but" value="添加">
                                    <input name="btnReset" id="XT-Reset" type="button" class="but but_reset" value="重置">
                                </td>
                              </tr>
                              <tr style="border-bottom:none;"><td colspan="4"><?php echo validation_errors('<div class="valid_error">', '</div>');?></td></tr>
                            </tbody>
                            </table>
                            <form action="" method="post">
                            <table class="aut_tab profile" width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tbody> 
                              <tr>
                                <td colspan="4" id="priceList" style="padding:15px 0 10px;">
                                	<?php if (in_array($usertype, array(4,5,6))):?>
                                		<?php if(!empty($list)) :foreach ($list as $key => $a): ?>
	                                      <div class="itemer_t clearfix">
	                                        <p class="fl">
	                                        	<?php echo _is_empty($workitem[$a['item']]);
	                                  				if ($a['scene'])
	                                  					echo ' + '._is_empty($workscene[$a['scene']]);
	                                        		if ($a['time'])
	                                        			echo ' + '._is_empty($worktime[$a['time']]);?>
	                                        	<input name="code[]" type="hidden" value="<?=$a['item'].'_'.$a['scene'].'_'.$a['time'];?>">
	                                        </p>
	                                        <div class="fr itemer_tdiv">
	                                        	<p class="fl">
													<?php if($a['time'] == 5):?>
	                                                <span>面谈</span><input name="price[]" type="hidden" value="0"/>
	                                                <?php else: ?>   
	                                                <span>¥ <input name="price[]" type="text" class="txt txt_price" value="<?=$a['price']?>" ></span>
	                                                <?php endif?>
	                                            </p>
	                                        	<a href="javascript:;" class="xt_delete fr" onclick="delPriceItem(<?php echo $a['id'];?>)">删除</a>
	                                        </div>
	                                      </div>
	                                    <?php endforeach;endif;?>
                                	<?php else :?>
	                                  	<?php if(!empty($list)) :foreach ($list as $key => $a): if (in_array($a['item'], array(2, 3, 6, 10))) :?>
	                                      <div class="itemer_t clearfix">
	                                        <p class="fl">
	                                        	<?php 
	                                        	      $work_remark='';
	                                        	      if ($a['shoottype'] && $a['shoottype'] == 1) 
	                                        	      {
	                                        	          $shootpic = $a['shootpic']?$a['shootpic']:'不限';
	                                        	          $work_remark .='+款式拍摄'.$shootpic.'件起拍';
	                                        	      }
	                                        	      if ($a['shoottype'] && $a['shoottype'] == 2)
	                                        	      {
	                                        	          $shootpic = $a['shootpic']?$a['shootpic']:'不限';
	                                        	          $work_remark .='+形象拍摄'.$shootpic.'件起拍';
	                                        	      }
	                                        	      if ($a['shoottype'] && $a['shoottype'] == 3)
	                                        	          $work_remark .='+不限';
	                                        	      if ($a['swimsuit'] && $a['swimsuit'] > 0.1)
	                                        	          $work_remark .= '+内衣泳装加收'.$a['swimsuit'].'%';
	                                        	      if ($a['swimsuit'] && $a['swimsuit'] == 0.1)
	                                        	          $work_remark .= '+不接内衣泳装';
	                                        	      if ($a['appealsuit'] && $a['appealsuit'] > 0.1)
	                                        	          $work_remark .= '+情趣内衣加收'.$a['appealsuit'].'%';
	                                        	      if ($a['appealsuit'] && $a['appealsuit'] == 0.1)
	                                        	          $work_remark .= '+不接情趣内衣';
	                                        	      echo _is_empty($workitem[$a['item']]).' + '._is_empty($workscene[$a['scene']]).' + '._is_empty($worktime[$a['time']]).$work_remark;
	                                        	?>
	                                        	<input name="code[]" type="hidden" value="<?=$a['item'].'_'.$a['scene'].'_'.$a['time'];?>">
	                                        	<input name="shoottype[]" type="hidden" value="<?=$a['shoottype'];?>">
	                                        	<input name="shootpic[]" type="hidden" value="<?=$a['shootpic'];?>">
	                                        	<input name="swimsuit[]" type="hidden" value="<?=$a['swimsuit'];?>">
	                                        	<input name="appealsuit[]" type="hidden" value="<?=$a['appealsuit'];?>">
	                                        </p>
	                                        <div class="fr itemer_tdiv">
	                                        	<p class="fl">
													<?php if($a['time'] == 5):?>
	                                                <span>面谈</span><input name="price[]" type="hidden" value="0"/>
	                                                <?php else: ?>   
	                                                <span>¥ <input name="price[]" type="text" class="txt txt_price" value="<?=$a['price']?>" ></span>
	                                                <?php endif?>
	                                            </p>
	                                        	<a href="javascript:;" class="xt_delete fr" onclick="delPriceItem(<?php echo $a['id'];?>)">删除</a>
	                                        </div>
	                                      </div>
	                                    <?php endif;endforeach;endif;?>
	                            	<?php endif;?>
                                </td>
                              </tr>
                              <?php if ($usertype == 1):?>
                              <tr style="border-bottom:none;" id="work_remark" class="<?php echo !empty($list)?'tr_show':'tr_hidden'; ?>">
                                <td width="86" class="price">备注：</td>
                                <td colspan="3" class="price">
                                                                                    本地工作 <input name="local_order" value="<?=$local_order?$local_order:''?>" style="width:25px;"/> 小时起拍，外地工作 <input name="field_order" value="<?=$field_order?$field_order:''?>" style="width:25px;"/> 小时起拍
                                </td>
                              </tr>
                              <?php endif;?>
                              <tr style="border-bottom:none;">
                                <td style="height:80px" colspan="4" align="center">
                                    <input name="btn" id="XT-Submit" type="submit" class="xthide <?php echo !empty($list)?'but':''; ?>" value="提交">
                                </td>
                              </tr>
                              <div id="priceitem" class="xthide">
                                  <div class="itemer itemer_t clearfix">
                                    <p class="fl">
                                        {{item_work}}<input name="{{_eg_}}code[]" type="hidden" value="{{item_code}}">
                                        <input name="{{_eg_}}shoottype[]" type="hidden" value="{{shoottype}}">
                                        <input name="{{_eg_}}shootpic[]" type="hidden" value="{{shootpic}}">
                                        <input name="{{_eg_}}swimsuit[]" type="hidden" value="{{swimsuit}}">
                                        <input name="{{_eg_}}appealsuit[]" type="hidden" value="{{appealsuit}}">    
                                    </p>
                                    <div class="fr itemer_tdiv">
                                    	<span class="fl">¥ <input name="{{_eg_}}price[]" type="text" class="txt txt_price" value="0" ></span>
                                    </div>
                                  </div>
                              </div>
                          </tbody></table>
                          </form>
                        </div>
                    </div>
                    <div class="fr um_wind">
                      <?php include_once(VIEWPATH."m/public/right.php");?>
                    </div>
                </div>
            </div>
        </div>
        <div class="help_bottom"></div>
    </div> 
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery.SuperSlide.2.1.1.js"></script>
<script>jQuery(".txtScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true});</script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>pages/m/product.js"></script>
<style>.aut_tab td{height:auto;}</style>
</html>